home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutor.exe
/
ANSWERS
/
CH04_1.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-15
|
351b
|
29 lines
main()
{
int index, square;
for(index = 1 ; index < 13 ; index = index + 1) {
square = index * index;
printf("%5d%5d\n", index, square);
}
}
/* Result of execution
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
11 121
12 144
*/